package com.cnciems.lakekb.course.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cnciems.lakekb.course.domain.KbCourse;
import com.cnciems.lakekb.course.mapper.CourseMapper;
import com.cnciems.lakekb.course.service.ICourseService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * @version V1.0
 * @program: lake-kb
 * @package: com.cnciems.lakekb.course.service.impl
 * @description: 类描述
 * @author: HHJ
 * @dep STATE GRID XIONG AN DIGITAL TECHNOLOGY Co.,Ltd
 * @create: 2021-05-24 11:34
 **/
@Service
@Slf4j
public class CourseServiceImpl extends ServiceImpl<CourseMapper,KbCourse> implements ICourseService {
    @Autowired
    CourseMapper courseMapper;
    @Override
    public IPage<KbCourse> selectPage(Page<KbCourse> page, String necessary) {
        return courseMapper.selectPage1(page,necessary);
    }
}
